<?php
/* 
	[BuyPg] (C) 2010-2011 Buypg
	$Id: YouhuiCommentModel.class.php 2011-12-26 14:38:58 wufujun $
 */
if (!defined('THINK_PATH')){
	exit('Access Denied');
}

class YouhuiCommentModel extends CommonModel{
	//自动验证
	protected $_validate = array(
		array('title','require','评论标题不能为空',0),
		array('yid','require','所属信息ID不能为空',0),
		array('merit','require','优点不能为空',0),
		array('defect','require','缺点不能为空',0),
		array('score','require','评分不能为空',0),
		array('author','require','作者不能为空',0),
		array('authorid','require','作者ID不能为空',0),
	);
	
	protected $_auto = array(
		array('dateline' , 'time' ,1, 'function'),
	);
	
}
?>